<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>

    <head>
        <title>Lista Productos</title>
    </head>

    <body bgcolor='white'>

        Actualmente tienes <b>${fn:length(sessionScope.tf.prods)}</b>
       productos en inventario<br/>

        <table border='0' cellspacing='0' cellpadding='5'>

            <tr>
                    <th>NOMBRE</th>
                    <th>TIPO</th>
                               
            </tr>

            <c:forEach var="obj" items="${sessionScope.tf.prods}">
                <tr>
                        <td>${obj.idProducto}</td>
                        <td>${obj.descripcion}</td>
                    
                </tr>
            </c:forEach>

        </table>

    </body>

</html>
